home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / muds / lpmud312.tar / lpmud312 / func_spec.c < prev    next >
C/C++ Source or Header  |  1992-01-11  |  5KB  |  159 lines

  1. #include "config.h"
  2. /*
  3.  * This file specifies types and arguments for efuns.
  4.  * An argument can have two different types with the syntax 'type1 | type2'.
  5.  * An argument is marked as optional if it also takes the type 'void'.
  6.  *
  7.  * Look at the end for the list of functions that are optionally available.
  8.  * If you don't want them, simply comment out them. All other functions must
  9.  * remain defined.
  10.  */
  11. string *regexp(string *, string);
  12. void add_action(string, void|string, void|int);
  13. void add_verb(string);
  14. void add_worth(int, void|object);
  15. void add_xverb(string);
  16. object *all_inventory(object default: F_THIS_OBJECT);
  17. mixed *allocate(int);
  18. mixed assoc(mixed, mixed *, mixed|void, mixed|void);
  19. void break_point();
  20. unknown call_other(object|string, string, ...);
  21. void call_out(string, int, void|mixed);
  22. mixed *call_out_info();
  23. string capitalize(string);
  24. int cat(string, void|int, void|int);
  25. int cindent(string);
  26. string clear_bit(string, int);
  27. object clone_object(string);
  28. int command(string, void|object);
  29. string crypt(string, string|int);    /* An int as second argument ? */
  30. string ctime(int);
  31. mixed debug_info(int, mixed|void, ...);
  32. object *deep_inventory(object);
  33. void destruct(object);
  34. void disable_commands();
  35. void ed(void|string, void|string);
  36. void enable_commands();
  37. object environment(void|object);
  38. int exec(object, object);
  39. string *explode(string, string);
  40. string extract(string, void|int, void|int);
  41. string file_name(object default: F_THIS_OBJECT);
  42. int file_size(string);
  43. mixed *filter_array(mixed *, string, object|string, void|mixed);
  44. int find_call_out(string);
  45. object find_living(string);
  46. object find_object(string);
  47. object find_player(string);
  48. string function_exists(string, object default: F_THIS_OBJECT);
  49. string implode(string *, string);
  50. void input_to(string, void|int);
  51. mixed insert_alist(mixed, mixed, ...);
  52. int interactive(object default: F_THIS_OBJECT);
  53. mixed *intersect_alist(mixed *,mixed *);
  54. int intp(mixed);
  55. int living(object);
  56. void localcmd();
  57. void log_file(string, string);
  58. string lower_case(string);
  59. string *get_dir(string);
  60. mixed *map_array(mixed *, string, object|string, void|mixed);
  61. int member_array(mixed, mixed *);
  62. int mkdir(string);
  63. void move_object(object|string, object|string);
  64. void notify_fail(string);
  65. int objectp(mixed);
  66. mixed *order_alist(mixed *, void|mixed *, ...);
  67. int pointerp(mixed);
  68. object present(object|string, void|object);
  69. object previous_object();
  70. string process_string(string);
  71. string query_host_name();
  72. int query_idle(object);
  73. string query_ip_name(void|object);
  74. string query_ip_number(void|object);
  75. string query_load_average();
  76. object query_snoop(object);
  77. string query_verb();
  78. int random(int);
  79. string read_bytes(string, void|int, void|int);
  80. string read_file(string, void|int, void|int);
  81. int remove_call_out(string);
  82. int restore_object(string);
  83. int rm(string);
  84. void rmdir(string);
  85. #ifdef RUSAGE
  86. string rusage();
  87. #endif
  88. void save_object(string);
  89. void say(string|mixed *, void|object|object *);
  90. string set_bit(string, int);
  91. int set_heart_beat(int);
  92. int set_light(int);
  93. void set_living_name(string);
  94. object shadow(object, int);
  95. void shout(string);
  96. void shutdown();
  97. int sizeof(mixed *);
  98. object snoop(void|object, void|object);
  99. mixed *sort_array(mixed *,string,object|string default: F_THIS_OBJECT);
  100. int stringp(mixed);
  101. int strlen(string);
  102. void swap(object);        /* Only used for debugging */
  103. void tail(string);
  104. void tell_object(object, string);
  105. void tell_room(object|string, string, void|object *);
  106. int test_bit(string, int);
  107. object this_object();
  108. object this_player(void|int);
  109. void throw(mixed);
  110. int time();
  111. int trace(int);
  112. string traceprefix(string|int);
  113. mixed *unique_array(mixed *, string, void|mixed);
  114. object *users();
  115. string version();
  116. void wizlist(void|string);
  117. void write(mixed);
  118. int write_bytes(string, int, string);
  119. int write_file(string, string);
  120. string *inherit_list(object default: F_THIS_OBJECT);
  121.  
  122. /*
  123.  * List of functions only used in compatibility mode.
  124.  */
  125. #ifdef COMPAT_MODE
  126. string creator(object);
  127. int transfer(object, object|string);
  128. string create_wizard(string, void|string);
  129. #endif
  130.  
  131. /*
  132.  * List of functions only used in native mode.
  133.  */
  134. #ifndef COMPAT_MODE
  135. int rename(string, string);
  136. int export_uid(object);
  137. string geteuid(object default: F_THIS_OBJECT);
  138. string getuid(object default: F_THIS_OBJECT);
  139. int seteuid(string|int);
  140. #endif
  141.  
  142. #ifdef MALLOC_malloc
  143. /*
  144.  * This one is needed if you use the old malloc.c, which is no longer
  145.  * supplied. It is called from church.c in the original 2.4.5 mudlib. This
  146.  * call is not needed if malloc.c is not used, and should be removed.
  147.  */
  148. void combine_free_list();
  149. #endif
  150.  
  151. /*
  152.  *
  153.  * The following functions are optional. Comment out the ones not wanted.
  154.  * Beware that some may be used in mudlib 2.4.5.
  155.  *
  156.  */
  157. object first_inventory(object|string default: F_THIS_OBJECT);
  158. object next_inventory(object default: F_THIS_OBJECT);
  159.